import * as modInstances from "../module/index";

async function getBcrState() {
    let { bcr } = modInstances
    let result = await bcr.GetState()
    return result
}

async function readBarcodeStep(timeout = -1) {
    let { bcr } = modInstances
    let result = await bcr.ReadBarcode(timeout)
    return result
}


async function closeBcrStep() {
    let { bcr } = modInstances
    let result = await bcr.Close();
    return result.ret
}

export { getBcrState, readBarcodeStep, closeBcrStep }